home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wics.zip / DLGTMPLT.H < prev    next >
C/C++ Source or Header  |  1993-03-05  |  2KB  |  80 lines

  1. //==============================================================================================
  2. //
  3. //    Windows Interface Construction Set
  4. //    Version 1.00
  5. //
  6. //    DLGTMPLT.H - Dialog Template Header File
  7. //    Copyright ⌐ 1993 by Microdyne Development Technologies.
  8. //    All rights reserved.
  9. //==============================================================================================
  10.  
  11. #ifndef _DLGTMPLT_H
  12. #define _DLGTMPLT_H
  13.  
  14. #include <owl.h>
  15.  
  16. #pragma option -Vo-
  17. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  18. #pragma option -po-
  19. #endif
  20.  
  21. #define DTCS_BUTTON            (LPSTR)0x00000080L
  22. #define DTCS_EDIT            (LPSTR)0x00000081L
  23. #define DTCS_STATIC            (LPSTR)0x00000082L
  24. #define DTCS_LISTBOX        (LPSTR)0x00000083L
  25. #define DTCS_SCROLLBAR        (LPSTR)0x00000084L
  26. #define DTCS_COMBOBOX        (LPSTR)0x00000085L
  27.  
  28. #define CTLCLASS        20      /* max size of class name */
  29. #define CTLTITLE        94      /* max size of control text */
  30.  
  31. typedef struct tagDIALOGBOXHEADER
  32. {
  33.     DWORD lStyle;
  34.     BYTE  bNumberOfItems;
  35.     WORD  x;
  36.     WORD  y;
  37.     WORD  cx;
  38.     WORD  cy;
  39. } DIALOGBOXHEADER;
  40.  
  41. typedef DIALOGBOXHEADER FAR * LPDIALOGBOXHEADER;
  42.  
  43. typedef struct tagCONTROLDATA
  44. {
  45.     WORD  x;
  46.     WORD  y;
  47.     WORD  cx;
  48.     WORD  cy;
  49.     WORD  wID;
  50.     DWORD lStyle;
  51. } CONTROLDATA ;
  52.  
  53. typedef CONTROLDATA FAR * LPCONTROLDATA ;
  54.  
  55.  
  56. _CLASSDEF (TDialogTemplate)
  57.  
  58. class _EXPORT TDialogTemplate
  59. {
  60. private:
  61.     HGLOBAL    hTemplate ;
  62.     WORD    wSize;
  63.  
  64. protected:
  65. public:
  66.     TDialogTemplate(DWORD lStyle, WORD x, WORD y, WORD cx, WORD cy, LPSTR lpClass, Pchar lpCaption);
  67.     ~TDialogTemplate();
  68.  
  69.     void AssignMenu (Pchar lpMenuName);
  70.     void AddControl (DWORD lStyle, WORD id, WORD x, WORD y, WORD cx, WORD cy, LPSTR lpClass, Pchar lpCaption);
  71.     HGLOBAL GetHandle() { return hTemplate; }
  72. };
  73.  
  74. #pragma option -Vo.
  75. #if     defined(__BCOPT__) && !defined(_ALLOW_po)
  76. #pragma option -po.
  77. #endif
  78.  
  79. #endif
  80.